// React基础组件
import React from 'react'
// dva 连接组件 - 连接route和model
import { connect } from 'dva'
// 引入antd的组件
import { Form, Popconfirm, Row, Col, Button, Input, Table, DatePicker } from 'antd'
//导入路由组件，用于跳转等
import { Link, hashHistory } from 'dva/router'
// 导入项目全局配置文件
import config, { listConfig } from 'config/config'

// 引入model取值工具方法
import { mapStateToProps } from 'utils/view_utils'
// 当前组件样式
import styles from './codeChannelCliqueStyle.less'
import { CollapsiblePanels } from 'widget/CollapsiblePanels/index'
import ListPage from 'widget/PageTmpl/ListPage'
import cx from 'classnames';
import ReactEcharts from 'echarts-for-react';
import moment from 'moment'
import CodeChannelStatisticsView from '../codeChannelStatistics/codeChannelStatisticsView'

const codeChannelCliqueView = function ({ dispatch, model, form }) {
	// 表单的子函数
	const { resetFields, getFieldDecorator, validateFields, setFieldsValue } = form
	// 取出model对象，命名空间
	const { modelObj, namespace } = model

	let props = { dispatch, model }
	// 子组件步骤完成时调用, 切换子组件
	// const changeView = (view, step) => {
	// 	updateModel(view, 'currentViewName')
	// 	updateModel(step, 'step')
	// }

	return (
		<div className="public_listMain">
			<CodeChannelStatisticsView {...props}/>
		</div>
	)
}

// 连接视图(view)和模型(model)
export default connect(mapStateToProps)(Form.create()(codeChannelCliqueView))